# coding: utf-8
import requests

# url = 'https://www.weather.com.cn/weather1d/101240101.shtml#input'
url = 'https://www.baidu.com/img/PCtm_d9c8750bed0b3c7d089fa7d55720d6cf.png'
# url = 'https://mbd.baidu.com/newspage/data/landingsuper?context=%7B%22nid%22%3A%22news_9730881225282307024%22%7D&n_type=-1&p_from=-1'
ret = requests.get(url)
ret.encoding = 'utf-8'
print(ret.text)
# with open('1.png', 'wb') as file:
#     print(ret.content)
#     file.write(ret.content)